/** @type {import('next').NextConfig} */
/*
模板原代码
const nextConfig = {
    reactStrictMode: true,
}

module.exports = nextConfig
*/
const nextConfig = {
    reactStrictMode: true,
    async rewrites() {
      return [
        {
          source: '/api/:path*',
          destination: 'http://172.24.36.126:5000/:path*' // Flask后端服务器的地址

        }
      ]
    }
  }
  
  module.exports = nextConfig